Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: [M3-8954] - Update @hookform/resolvers to latest #11349

Conversation

bnussman-akamai
Copy link
Member

Description 📝

  • Updates @hookform/resolvers to latest 📦
  • Brings enhanced type-safety and will unblock other efforts like M3-8956 ✨

Changes 🔄

Note

These changes were necessary to satisfy TypeScript now that yup resolvers are more type safe

  • Fixes incorrect CloudPulse alerting incorrect types / schemas
  • Replaces some instances of notRequired() with optional()
    • notRequired() means the value can be null, undefined, or not present
    • optional() means the value can be undefined or not present
    • This change was needed to make our resolvers satisfy/match the types defined in api-v4
  • Added missing fields on CreateBucketSchema
  • Fixed deprecations and cleaned up the Linode Create resolver

Preview 📷

Note

There should be no UI changes

How to test 🧪

  • Check for schema regressions
    • Manually test affected forms
    • Verify cypress tests pass for affected forms
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@bnussman-akamai bnussman-akamai added the Dependencies Pull requests that update a dependency file label Dec 2, 2024
@bnussman-akamai bnussman-akamai self-assigned this Dec 2, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 462 passing tests on test run #3 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing462 Passing2 Skipped94m 47s

@bnussman-akamai bnussman-akamai marked this pull request as ready for review December 2, 2024 21:36
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner December 2, 2024 21:36
@bnussman-akamai bnussman-akamai requested review from mjac0bs and pmakode-akamai and removed request for a team December 2, 2024 21:36
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Confirmed that validation is still being applied where expected on Linode Create flow, Kube ACL IP addresses, CloudPulse alert creation, and OBJ bucket creation.

✅ Tests are passing for all flows.

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Dec 4, 2024
Copy link
Contributor

@pmakode-akamai pmakode-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Changes looks good
✅ Cypress tests pass

Thank you!

@pmakode-akamai pmakode-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Dec 5, 2024
@bnussman-akamai bnussman-akamai merged commit 8485b52 into linode:develop Dec 5, 2024
23 checks passed
Copy link

cypress bot commented Dec 5, 2024

Cloud Manager E2E    Run #6927

Run Properties:  status check passed Passed #6927  •  git commit 8485b52ff3: refactor: [M3-8954] - Update `@hookform/resolvers` to latest (#11349)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6927
Run duration 27m 24s
Commit git commit 8485b52ff3: refactor: [M3-8954] - Update `@hookform/resolvers` to latest (#11349)
Committer Banks Nussman
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 466
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Dependencies Pull requests that update a dependency file Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants